<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>管理员主页</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">

<div class="container py-5">
    <div class="text-center mb-4">
        <h2 class="text-danger">🛠 管理员控制台</h2>
        <p class="lead">欢迎管理员 {{ session.username }}</p>
    </div>

    <div class="row g-4">
        <!-- 用户管理 -->
        <div class="col-md-4">
            <div class="card shadow">
                <div class="card-body text-center">
                    <h5 class="card-title">👥 用户管理</h5>
                    <p class="card-text">查看 / 修改 / 删除系统用户</p>
                    <a href="{{ url_for('manage_users') }}" class="btn btn-outline-primary">进入</a>
                </div>
            </div>
        </div>

        <!-- 数据分析 -->
        <div class="col-md-4">
            <div class="card shadow">
                <div class="card-body text-center">
                    <h5 class="card-title">📊 数据统计分析</h5>
                    <p class="card-text">查看水质、养殖趋势等可视化图表</p>
                    <a href="#" class="btn btn-outline-success disabled">开发中</a>
                </div>
            </div>
        </div>

        <!-- 报警设置 -->
        <div class="col-md-4">
            <div class="card shadow">
                <div class="card-body text-center">
                    <h5 class="card-title">🚨 预警规则设置</h5>
                    <p class="card-text">配置水温/pH阈值，智能报警</p>
                    <a href="#" class="btn btn-outline-warning disabled">开发中</a>
                </div>
            </div>
        </div>
    </div>

    <div class="text-center mt-4">
        <a href="{{ url_for('logout') }}" class="btn btn-outline-danger">退出登录</a>
    </div>
</div>

</body>
</html>
